import {request} from "../../static/core/request";

// 检查用户在线状态
export function checkLogin() {
    return request({ url: '/wxmini/standard/api/wxuser/checkLogin', method: 'get' });
}
export function getNotice() {
    return request({ url: '/wxmini/standard/api/entry/getNotice', method: 'get' });
}
export function openValveApi(data) {
    return request({ url: '/wxmini/standard/api/entry/kaifa', method: 'post', data });
}
export function closeValveApi(data) {
    return request({ url: '/wxmini/standard/api/entry/guanfa', method: 'post', data });
}
export function getTime() {
    return request({ url: 'https://api.m.taobao.com/rest/api3.do?api=mtop.common.getTimestamp', method: 'get' });
}

// 地图
export function payOrderApi(data) {
    return request({ url: '/miniOrder', method: 'post', data });
}
export function getOpenIdApi(data) {
    return request({ url: '/getOpenId', method: 'post', data });
}

export function sendCode(data) {
    return request({ url: '/getCode', method: 'post', data });
}
//获取商品列表
export function getGoodsList(data) {
    return request({ url: '/getProduct', method: 'post', data });
}
export function feedback(data) {
    return request({ url: '/feedback', method: 'post', data });
}